<?php

class RecentComments extends Portlet
{
	public $title='Comentarios recientes';

	public function getRecentComments()
	{
		return Comment::model()->findRecentComments();
	}

	protected function renderContent()
	{
		$this->render('recentComments');
	}
}